package com.koron.common.core.business.workflow.bean.properties;

import com.koron.common.core.business.configsettings.utils.ConfigInfoTool;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author qingfeng
 * @date 2021/7/23 15:20
 */
@Component
public class WorkFlowConfigProperties {

    private final String RSApublickey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKihfalV5Kt1wwKBDalLK6hGZAc3kxz33B36oeOOZMXTVTtPEHBK7eIXMvOwLMbB7IWkU/9ppZuVG8+tJs0BeekCAwEAAQ==";

    public String getRSApublickey() {
        Map<String, String> map = ConfigInfoTool.getConfigByCode("common", "workflow");
        return map.get("RSApublickey");
    }

    public String getUrl() {
       Map<String, String> map = ConfigInfoTool.getConfigByCode("common", "workflow");
       return map.get("url");
    }

    public String getHome() {
        Map<String, String> map = ConfigInfoTool.getConfigByCode("common", "workflow");
        return map.get("home");
    }

    public String getDraft() {
        return "draft-";
    }

    public String getCall() {
        return "call-";
    }
}
